<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFundLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fund_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id');//用户ID
            $table->string('type');//资金类型
            $table->string('price');//金额
            $table->string('order_id',60)->nullable();//订单号
            $table->integer('source_id')->nullable();//来源
            $table->string('source_type',16);//来源类型
            $table->integer('staff_uuid');//创建人id
            $table->text('remark');//备注
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fund_logs');
    }
}
